package cn.example.demo.modules.house.dto;

import cn.example.demo.common.retrieval.BaseRequest;
import cn.example.demo.common.validation.groups.Delete;
import cn.example.demo.common.validation.groups.Insert;
import cn.example.demo.common.validation.groups.Update;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 描述：【旅游景点】DTO
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ScenerySpotDto extends BaseRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "ID不能为空！", groups = {Update.class})
    private String id;

    @NotEmpty(message = "景点名称不能为空！", groups = {Insert.class, Update.class})
    private String name;

    private String sceneryType;

    @NotEmpty(message = "景点图不能为空！", groups = {Insert.class, Update.class})
    private String sceneryImageUrl;

    @NotEmpty(message = "宣传标语不能为空！", groups = {Insert.class, Update.class})
    private String announceTitle;

    private String detailArticle;

    @NotNull(message = "景点状态不能为空！", groups = {Update.class})
    private Integer sceneryStatus;


    @NotEmpty(message = "IDs不能为空集！", groups = {Delete.class})
    private List<String> ids;
}
